package com.ticket.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ticket.common.annotation.Excel;
import com.ticket.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 演出预留座对象 t_yanchu_reserved_seats
 * 
 * @author ruoyi
 * @date 2023-10-17
 */
@ApiModel(description = "演出预留座对象")
public class TYanchuReservedSeats extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 预留座名称 */
    @Excel(name = "预留座名称")
    @ApiModelProperty(value = "预留座名称")
    private String reservedName;

    /** 预留座类型 */
    @Excel(name = "预留座类型")
    @ApiModelProperty(value = "预留座类型")
    private String reservedType;

    /** 0：关闭；1：开启 */
    @Excel(name = "0：关闭；1：开启")
    @ApiModelProperty(value = "0：关闭；1：开启")
    private Integer statue;

    /** 剧院id */
    @Excel(name = "剧院id")
    @ApiModelProperty(value = "剧院id")
    private Long operaId;

    @Transient
    @ApiModelProperty(value = "预留座座位信息")
    private String seats;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setReservedName(String reservedName) 
    {
        this.reservedName = reservedName;
    }

    @Size(min = 0,max = 6,message = "预留座名称长度不能超过6个字符")
    @NotBlank(message = "预留座名称不能为空")
    public String getReservedName() 
    {
        return reservedName;
    }
    public void setReservedType(String reservedType) 
    {
        this.reservedType = reservedType;
    }
    @Size(min = 0,max = 1,message = "预留座名称长度不能超过1个字符")
    @NotBlank(message = "预留座类型不能为空")
    public String getReservedType() 
    {
        return reservedType;
    }
    public void setStatue(Integer statue) 
    {
        this.statue = statue;
    }

    public Integer getStatue() 
    {
        return statue;
    }
    public void setOperaId(Long operaId) 
    {
        this.operaId = operaId;
    }

    public Long getOperaId() 
    {
        return operaId;
    }

    public String getSeats() {
        return seats;
    }

    public void setSeats(String seats) {
        this.seats = seats;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reservedName", getReservedName())
            .append("reservedType", getReservedType())
            .append("statue", getStatue())
            .append("operaId", getOperaId())
            .toString();
    }
}
